﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="${site.theme_dir}css/init.css" />
    <link rel="stylesheet" type="text/css" href="${site.theme_dir}css/head.css" />
    <link rel="stylesheet" type="text/css" href="${site.theme_dir}css/Shopping_Address.css" />
    <title>
        ${config.SiteTitle}-地址库管理
    </title>
    <link rel="stylesheet" type="text/css" href="/Scripts/jquery_formValidator.css">

    <script type="text/javascript" src="${site.dir}Scripts/jquery-1.3.2.js"></script>

    <script type="text/javascript" src="${site.dir}Scripts/jquery_formValidator.js"></script>

    <script type="text/javascript" src="${site.dir}Scripts/jquery_formValidatorRegex.js"></script>

    <script type="text/javascript" src="${site.dir}Scripts/DateTimeMask.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div id="page">
            #parse("shared/_incs/_header.html")
            <div class="content">
                <div class="logo">
                    <img height="51" src="${site.theme_dir}images/Detail_cart/LOGO.gif"
                         width="200">
                </div>
                <div class="Process">
                    <ul>
                        <li class="li_02">1.购物车</li>
                        <li>
                            <img height="16" src="${site.theme_dir}images/Detail_cart/Arrow.gif"
                                 width="20">
                        </li>
                        <li class="li_01"><span>2、确认订单信息</span></li>
                        <li>
                            <img height="16" src="${site.theme_dir}images/Detail_cart/Arrow.gif"
                                 width="20">
                        </li>
                        <li class="li_02">3、订购成功</li>
                    </ul>
                </div>
                <div class="clear">
                </div>
                <div class="History">
                    <span class="History_font">地址薄 （您以前用过的地址）</span>
                    <asp:DataList ID="dlAreaList" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                                  OnItemCommand="dlAreaList_ItemCommand">
                        <ItemTemplate>
                            <div class="History_left">
                                <ul>
                                    <li>收货姓名：<%#DataBinder.Eval(Container.DataItem, "tousername")%></li>
                                    <li>
                                        收货地区：<%#DataBinder.Eval(Container.DataItem, "touserareapro")%>
                                        <%#DataBinder.Eval(Container.DataItem, "touserareacity")%>
                                        <%#DataBinder.Eval(Container.DataItem, "touserareacity2")%>
                                    </li>
                                    <li>收货地址：<%#DataBinder.Eval(Container.DataItem, "touserurl")%></li>
                                    <li>邮政编码：<%#DataBinder.Eval(Container.DataItem, "topostnum")%></li>
                                    <li>固定电话：<%#DataBinder.Eval(Container.DataItem,"touserphone")}</li>
                                    <li>移动电话：<%#DataBinder.Eval(Container.DataItem, "tousertelephone")%></li>
                                </ul>
                                <span>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Bind("ID")}'
                                                    CommandName="go">修改</asp:LinkButton>
                                    |
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Bind("ID")}'
                                                    CommandName="del">删除</asp:LinkButton>
                                </span>
                                <asp:LinkButton ID="LinkButton3" runat="server" CssClass="botton_01" CommandArgument='<%#Bind("ID")}'
                                                CommandName="sendgo" Width="110px" Height="25px"></asp:LinkButton>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                    <div class="clear">
                    </div>
                </div>
                <div class="History">
                    <span class="History_font">请输入新的配送地址</span>
                    <table width="948" border="0" cellspacing="0" cellpadding="0" class="table_dz">
                        <tr>
                            <td width="316" align="right">
                                收货人姓名：
                            </td>
                            <td width="632">
                                <asp:TextBox ID="txtToUserName" runat="server" CssClass="textfield_04"></asp:TextBox><span class="Star">*</span><span class="gray">请准确填写真实姓名，以便确保管理准确无误送达。</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                配送省份/直辖市：
                            </td>
                            <td>
                                <div class="ChinaArea">
                                    <select id="province" style="width: 100px;"></select>
                                    <select id="city" style="width: 100px;"></select>
                                    <select id="county" style="width: 120px;"></select>
                                    <asp:HiddenField runat="server" ID="Tprovince" />
                                    <asp:HiddenField runat="server" ID="TCity" />
                                    <asp:HiddenField runat="server" ID="TCounty" />
                                </div>
                                <span class="Star">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top">
                                详细地址：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUserToUrl" runat="server" CssClass="textfield_04"></asp:TextBox><span class="Star">*</span><br />
                                <span class="gray">送货上门，货到付款！</span><a href="../help/Delivery.html" target="_blank">查看配送范围</a>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                邮政编码：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUserToPostNum" runat="server" CssClass="textfield_04"></asp:TextBox>
                                <span class="Star">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                固定电话：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUserToPhone" runat="server" CssClass="textfield_04"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                手 机：
                            </td>
                            <td>
                                <asp:TextBox ID="txtToUserTelePhone" runat="server" Width="199px"></asp:TextBox>
                                <span class="gray">手机和固定电话至少填一个</span>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                <input id="city1" type="hidden" name="city1" value="${address.touserareapro}" />
                                <input id="city2" type="hidden" name="city2" value="${address.touserareacity}" />
                                <input id="city3" type="hidden" name="city3" value="${ address.touserareacity2%>" />
                                <input id="hfID" name="hfid" type="hidden" value="${address.id}" />
                                <asp:Button ID="btnSaveGoPay" runat="server" CssClass="botton_01" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            #parse("shared/_incs/_dismode.html")
            #parse("shared/_incs/_footer.html")
        </div>

        <script type="text/javascript" src="/_template/default/scripts/location.js"></script>

        <script type="text/javascript" src="/_template/default/scripts/YLChinaArea.js"></script>

        <script type="text/javascript">
        $(function() {
            $(".ChinaArea").jChinaArea({
                aspnet: true,
                s1: "${s1}",
                s2: "${s2}",
                s3: "${s3}"
            });
        });

        $(function() {
            $.formValidator.initConfig({ formid: "form1", alertmessage: true, onerror: function(msg) { alert(msg) } });

            $("#txtToUserName").formValidator({ onshow: "请输入姓名", onfocus: "姓名不能为空", oncorrect: "姓名合法" }).inputValidator({ min: 1, onerror: "姓名不能为空,请确认" });

            $("#txtToUserTelePhone").formValidator({ empty: true }).inputValidator({ min: 11, max: 11, onerror: "手机号码必须是11位的,请确认" }).regexValidator({ regexp: "mobile", datatype: "enum", onerror: "你输入的手机号码格式不正确" });

            $("#txtUserToPostNum").formValidator({ onshow: "请输入邮编", onfocus: "6位数字组成的哦", oncorrect: "谢谢你的合作，你的邮编正确" }).regexValidator({ regexp: "zipcode", datatype: "enum", onerror: "邮编格式不正确" });
        });
        </script>

    </form>
</body>
</html>